package cn.wolfcode.util;

import lombok.Getter;

@Getter
public enum RedisKeys {
     //短信验证码key实例对象
     VERIFY_CODE("verify_code",Consts.VERIFY_CODE_VAI_TIME * 60L);

     private String prefix;
     private Long time;

    RedisKeys(String prefix, long time) {
        this.prefix = prefix;
        this.time = time;
    }

    public String join(String value){
        StringBuilder sb = new StringBuilder(80);
        sb.append(this.prefix).append(":").append(value);
        return sb.toString();
    }

}